import { ApiProperty } from '@nestjs/swagger'
import { IsInt, IsNotEmpty, IsString } from 'class-validator'

export class UpdatePlanTaskDto {
  @ApiProperty({ description: '子计划ID' })
  @IsInt()
  @IsNotEmpty()
  subPlanId: number

  @ApiProperty({ description: '任务ID' })
  @IsString()
  @IsNotEmpty()
  taskId: string

  @ApiProperty({ description: '任务状态' })
  @IsInt()
  @IsNotEmpty()
  taskStatus: number

  @ApiProperty({ description: '备注' })
  @IsString()
  @IsNotEmpty()
  taskMark: string
}
